package com.mooer.http;

import java.util.Map;

import android.graphics.Bitmap;

import com.mooer.domain.ResBean;
import com.mooer.exception.SVException;
import com.mooer.utils.ResponseResultBean;

/** 
 * 类说明 
 * @author  pengfei.xu 
 * @version V1.0  创建时间：2011-4-28 下午05:31:29 
 */
public interface HttpConnection {
	
	ResBean login(String url,Map<String,String> headers);
	
	ResBean getStream(String url,Map<String,String> headers);
	
	ResBean getStream(String url,Map<String,String> headers,int timeout);
	
	ResBean postStream(String url,Map<String,String> headers,Map<String,String> params);
	
	ResBean postStream(String url,Map<String,String> headers,Map<String,String> params,int timeout);

	Bitmap downloadBitmap(String queryUrl);

	Bitmap downloadBitmap(String queryUrl, int timeOut);
	
	public ResponseResultBean getJSONBean(String url, Map<String, String> headers) throws SVException;
}
